package netty.rpc.framework.core.netty.transport.protocol;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 客户端向服务端发送RPC调用必要参数的简单封装
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class RPCRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer requestId;

    private String interfaceName;

    private String methodName;

    private Class<?>[] paramsTypes;

    private Object[] paramsValue;


}
